from ROOT import TFile,TTree

list=open('user.lxu.output.201302120108.data12_8TeV.00203680.physics_Muons.merge.NTUP_SMWZ.r4065_p1278_p1328_p1329.130212011357.list.input_list.txt', 'r')
for files in list.readlines():
  if files[-1]=='\n': file=files[:-1]
  else: file=files
  tf=TFile(file)
  tr=tf.Get("physics")
  print tr.GetEntries()
  tr.Scan("lbn", "lbn<352")

